package com.lmxdawn.api.dnf.service;

import com.lmxdawn.api.dnf.dto.WxJsapiPrepayResp;
import com.lmxdawn.api.dnf.entity.Order;
import com.wechat.pay.java.service.transferbatch.model.InitiateBatchTransferResponse;

import java.io.IOException;
import java.math.BigDecimal;
import java.util.Map;

public interface WxPayService {
    /**
     * 生成微信支付二维码
     *
     * @param orderId
     * @return
     */
    Map nativePay(String orderId) throws Exception;

    Map queryOrder(String out_trade_no);

    Map closeOrder(String orderId);


    Map doExtraByWx(BigDecimal amount, String openid);

    WxJsapiPrepayResp jsPay(String userId, Map content) throws IOException;
}
